<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Update Page</title>




<style type="text/css">
form {
	margin: 80px
}
</style>
</head>

<body>
	<jsp:include page="../common/head.jsp"></jsp:include>
	<!-- Change the wording using a title tag -->
	<form align="center" action="update" method="post"
		enctype="multipart/form-data">
		<h1>Merchant Update</h1>
		</br>
		<div class="form-group">
			<label for="inputEmail3" class="col-md-2 control-label">User
				name</label>
			<div class="col-md-10">
				<input type="text" name="name" value="${m.name}" disabled="disabled"
					class="form-control" id="inputEmail3" placeholder="username">
			</div>
		</div>
		<div class="form-group">
			<label for="inputEmail3" class="col-md-2 control-label">Old
				Password</label>
			<div class="col-md-10">
				<input type="password" name="oldpwd"  
					class="form-control" id="inputEmail3" placeholder="old password">
			</div>
		</div>
		<div class="form-group">
			<label for="inputEmail3" class="col-md-2 control-label">New
				Password</label>
			<div class="col-md-10">
				<input type="password" name="newpwd1"
					class="form-control" id="inputEmail3" placeholder="new password">
			</div>
		</div>
		<div class="form-group">
			<label for="inputEmail3" class="col-md-2 control-label">Confirm
				Password</label>
			<div class="col-md-10">
				<input type="password" name="newpwd2"  
					class="form-control" id="inputEmail3" placeholder="confirm password">
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-md-2 control-label">Store
				Name</label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="inputPassword3"
					placeholder="store name" name="storename" value="${m.storeName}" required>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-md-2 control-label">Address</label>
			<div class="col-md-10">
				<input type="text" name="addr" class="form-control"
					id="inputPassword3" placeholder="store address"
					value="${m.address}" required>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-md-2 control-label">Upload</label>
			<div class="col-md-10">
				<input type="file" data-filename-placement="inside"
					class="btn-success" name="idcard" title="Browse IDcard"> <input
					type="file" data-filename-placement="inside" class="btn-success"
					name="img" title="Browse Image">
			</div>
			</br>
			<div class="form-group">
				<div class="col-md-offset-2 col-md-10" align="center">
					<button type="submit" class="btn btn-default">Update</button>
				</div>
	</form>
	<script type="text/javascript">
		$('input[type=file]').bootstrapFileInput();
	</script>
	<link href="/css/bootstrap.min.css" rel="stylesheet" />

	<script type="text/javascript" src="/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/js/bootstrap.file-input.js"></script>
	<script type="text/javascript" src="/js/bootstrap-filestyle.min.js"></script>
	<script type="text/javascript" src="/js/bootstrap.min.js"></script>
</body>
</html>
